package br.com.mural.android;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import br.com.mural.android.entidades.Aviso;

public class AvisoDetailActivity extends Activity {
	TextView txtAviso, txtAutor;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_aviso_detail);
		Bundle dados = getIntent().getExtras();  
		Aviso aviso = (Aviso) dados.get("aviso");
		
		txtAutor = ((TextView) findViewById(R.id.autor));
		txtAviso = ((TextView) findViewById(R.id.aviso));
		
		
		txtAutor.setText(aviso.getClass().getSimpleName());
		txtAviso.setText(aviso.getDescricao());
	}
}
